/* Copyright (C) 2008 Sahid Ferdjaoui <sahid@funraill.org>
 *
 *   This file is part of Postmemd.
 *
 * Postmemd is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */



#include "pm_config.h"

#include <netinet/in.h>


extern config conf;


void
pm_init_config ()
{
	conf.port = htons (22122);
	conf.interface.s_addr = htonl (INADDR_ANY);

	conf.max_buffer_size = 1 * 1024;
	conf.backlog = 1024;

	conf.loop_flag = 0;

	conf.mem_lock = 1;
	conf.mem_size = 2 * 1024; // 2MB

	conf.num_slaves = 1;
	conf.max_size_slaves = 2 * 1024;
}



